@
@set inp=%1
@set src=%inp%.asm
@set out=%inp%.bin
@set lst=%inp%.lst
@set dfs=-D_DOS=1
@
@
@rem nasm -D_DOS=1 -f bin %src% -o %out% -l %lst%
@
@nasm %dfs% -E %src% > %inp%.ppa
@nasm %dfs% -a -f bin %inp%.ppa -o %out% -l %lst%
@
@echo.
@type %lst%
@echo.
@
@copy %out% %inp%.com
@